import request from '@/api/myRequest'

// 消息列表接口
export function messageListApi(data) {
  return request({
    url: `/service/message/messagePage`,
    method: 'POST',
    data
  })
}

// 查看消息详情接口
export function messageInfoApi(data) {
  return request({
    url: `/service/message/messageInfo/${data}`,
    method: 'get'
  })
}

// 编辑消息接口
export function editMessageApi(data) {
  return request({
    url: `/service/message/update`,
    method: 'PUT',
    data
  })
}

export default { messageListApi, messageInfoApi, editMessageApi }
